<template>
	<view>
		<uni-list>
			<uni-list-item v-for="(item, index) in dataList" :key="index" :show-extra-icon="true" showArrow
				:title="item.title" clickable="true" :extra-icon="extraIcon" :note="dataTime" link="navigateTo" to="/pages/repairGeneralApproval/repairGeneralApproval"/>
		</uni-list>
	</view>
</template>

<script>
	export default {
		name: "repairApprovalPending",
		data() {
			return {

				dataList: [],
				extraIcon: {
					color: '#409EFF',
					size: '40',
					type: 'email-filled'
				},
				dataTime:"2024-1-12 16:14:50"
			};
		},
		mounted() {
			this.fetchData();
		},
		methods: {
			fetchData() {
				const mockData = [{
						title: '您有一条维修申请待审核',
					},
					{
						title: '您有一条维修申请待审核',
					},
					{
						title: '您有一条维修申请待审核',
					},
				];

				this.dataList = mockData;
			},
		},
	};
</script>

<style lang="scss">
	.slot-box {
		/* #ifndef APP-NVUE */
		display: flex;
		/* #endif */
		flex-direction: row;
		align-items: center;
	}

	.slot-image {
		/* #ifndef APP-NVUE */
		display: block;
		/* #endif */
		margin-right: 10px;
		width: 30px;
		height: 30px;
	}

	.slot-text {
		flex: 1;
		font-size: 14px;
		color: #4cd964;
		margin-right: 10px;
	}
</style>